/* 基础样式 */
body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

/* 登录界面 */
#login-screen {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    text-align: center;
}

#login-screen input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#login-screen button {
    width: 100%;
    padding: 10px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 聊天界面 */
.chat-title {
    background: #1976d2;
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 8px 8px 0 0;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.container {
    display: flex;
    gap: 20px;
    height: calc(100vh - 100px);
    margin-top: 10px;
}

/* 消息区域 */
.chat-container {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f5f5f5;
}

/* 消息样式 */
.message-container {
    width: 100%;
    margin: 8px 0;
}

.message {
    display: inline-block;
    max-width: 80%;
    min-width: 50px;
    clear: both;
}

.message-bubble {
    background: #fff;
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message-bubble.sender-message {
    margin-left: auto;
    border-radius: 12px 12px 2px 12px;
}

.message-bubble.receiver-message {
    margin-right: auto;
    border-radius: 12px 12px 12px 2px;
}

/* 输入区域 */
.input-container {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

/* 按钮样式 */
.emoji-button, .profile-button {
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px 10px;
    border: none;
    background: none;
}

/* 侧边栏 */
#sidebar {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 平板样式 */
}

@media (max-width: 480px) {
    /* 手机样式 */
}

/* 其他样式保持不变... */ 